import request from '@/utils/request'

// 查询工艺明细列表
export function listTechDetail(query) {
  return request({
    url: '/base/techDetail/list',
    method: 'get',
    params: query
  })
}

// 查询工艺明细详细
export function getTechDetail(id) {
  return request({
    url: '/base/techDetail/' + id,
    method: 'get'
  })
}

// 新增工艺明细
export function addTechDetail(data) {
  return request({
    url: '/base/techDetail',
    method: 'post',
    data: data
  })
}

// 修改工艺明细
export function updateTechDetail(data) {
  return request({
    url: '/base/techDetail',
    method: 'put',
    data: data
  })
}

// 删除工艺明细
export function delTechDetail(id) {
  return request({
    url: '/base/techDetail/' + id,
    method: 'delete'
  })
}
